package com.matt.service.care.impl;


import com.matt.domain.care.HLTemperatureRecord;
import com.matt.repository.care.HLTemperatureRecordRepository;
import com.matt.service.care.HLTemperatureRecordService;
import com.matt.service.care.po.HLTemperatureRecordPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
@Slf4j
public class HLTemperatureRecordServiceImpl extends HLCareBaseServiceImpl<HLTemperatureRecord, HLTemperatureRecordRepository, HLTemperatureRecordPO> implements HLTemperatureRecordService {

    @Autowired
    @Override
    public void setBaseRepository(HLTemperatureRecordRepository repository){
        super.setBaseRepository(repository);
    }

    @Autowired
    HLTemperatureRecordRepository hlTemperatureRecordRepository;

    @Override
    public List<HLTemperatureRecord> findByEventTimeBetweenAndChildIdIn(Date begin, Date end, List<String> childrenIdList) {
        return hlTemperatureRecordRepository.findByEventTimeBetweenAndChildIdIn(begin,end,childrenIdList);
    }
}
